<div class="col-md-3 <?php
if ($good['is_stock']) {
    echo 'goods_item_no_stock';
}
?>">
    <div class="thumbnail" id="<?php echo $good['goods_id']; ?>" >
        <?php
		//是否售完
		if($good['is_stock']){
		?>
        <img class="lazy good_img" src="/images/1zw.gif" data-original="<?php echo $good['product_img']; ?>" alt="<?php echo $good['goods_name']; ?>"  title="<?php echo $good['goods_name']; ?>">
        <?php
		}else{
		//<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id']));
		//target="_blank"
		?>
        <a href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id']));?>" target="_blank" class="good_url" title="<?php echo $good['goods_name']; ?>">
            <img class="lazy good_img" src="/images/1zw.gif" data-original="<?php echo $good['product_img']; ?>" alt="<?php echo $good['goods_name']; ?>"  title="<?php echo $good['goods_name']; ?>">
        </a>
        <?php
		}
		?>
        <div class="caption">
            <div class="item-title">
                <span ><?php echo $good['goods_name']; ?></span>
                <?php if(!empty($good['is_format'])) :?>
                    <img class="is_format" onmouseover="$(this).next().css('display', 'block');" onmouseout="$(this).next().css('display', 'none');" alt="多规格" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/mutisf.png">
				<?php endif;?>
				<div class="multiple" style="display: none;">多规格</div>
				<!--<div class="tmall_icon"></div>-->
				<div class="<?php if($good['item_type']==1){ echo 'tmall_icon'; }else { echo 'taobaoc_icon'; } ?>"></div>
				
            </div>
            <div class="information">
            	<div class="pull-left"><span class="price_red">&#165</span><span class="promo_price"><?php echo $good['promo_price']; ?></span></div>
            	<div class="pull-left origin-price-div">
            		<div class="pull-left baoyou"></div>
            		<!--<?php //echo number_format($good['p_price'], 0);?>-->
            		<div class="pull-left origin-price">&#165 <?php echo number_format($good['p_price'], 0);?></div>
            	</div>
            	<div class="pull-right sales">
            		<?php
					if ($good['is_stock']) :
					    echo $good['sales_str'];
					else:
						echo "<span>已售:".mb_substr($good['sales_str'], 2, strlen($good['sales_str']),'utf-8')." </span>";
					endif;
					?>
            		
            	</div>
            	<Div class="clearfix"></Div>
            </div>
            <!--
            <div>
                <div class="pull-left price font-arial">
                    <i class="front-spt"></i><?php echo $good['promo_price']; ?>
                </div>
                <?php
				if($good['is_stock']){
				?>
                <a class="btn-purchase front-spt <?php if($good['item_type']==1){ echo 'tmall'; } ?><?php if($good['item_type']==11){ echo 'jd'; } ?>"  title="<?php echo $good['goods_name']; ?>"></a>
                <?php
				}else{
				?>
                <a class="btn-purchase front-spt <?php if($good['item_type']==1){ echo 'tmall'; } ?><?php if($good['item_type']==11){ echo 'jd'; } ?>" href="<?php echo $good['good_url']; ?>" target="_blank"  title="<?php echo $good['goods_name']; ?>"></a>
                <?php
				}
				?>
                <Div class="clearfix"></Div>
            </div>

            <div class="ts-col">
                <div class="pull-left time">
<?php echo $good['timer_str']; ?>
                </div>
                <div class="pull-right sales">
<?php echo $good['sales_str']; ?>
                </div>
                <Div class="clearfix"></Div>
            </div>
            -->
            <div class="share-box">
                <div class="share">
                	<div class="pull-left time"><?php echo $good['timer_str']; ?></div>
                    <div class="pull-right" >
                    	<a class="report_a" href="javascript:void(0);" onclick="window.open($(this).attr('data-url'));" data-url="<?php echo Yii::app()->createUrl('/front/punish/index', array('good_id' => $good['goods_id'])); ?>">
                    		[举报]
                    	</a>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
    <!--"今日新品"-->
    <?php 
    	$time = $_SERVER["REQUEST_TIME"];
    	$timer = $good['end_time'] - $time;
    	$d = floor($timer / 86400);
    	if ($d > 0 && $d == 2) {
			echo '<div class="today_new"></div>';
		}
    ?>
    	
    <?php
	//是否售完
	if($good['is_stock']){
	?>
    <a class="no_stock_icon" title="<?php echo $good['goods_name']; ?>"></a>
    <?php
	}else{
	?>
    <a class="no_stock_icon" href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id'])); ?>" target="_blank"  title="<?php echo $good['goods_name']; ?>"></a>
    <?php
	}
	?>
</div>